﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Entity;
using Utils;
using Library;
using DataContext;

namespace PaymentBLL
{
    public class CtrLogItemIn
    {
        public int InsertLogItemIn(int accountId, string accountName, int accountTypeId,
            int paymentGatewayId, string paymentGatewayName, string paymentGatewayUnit,
            string paymentAccountInfo, string systemAccountInfo, int itemInId, string itemInName,
            int totalAmountIn, int totalVndIn, int quantity, int totalReceiveAu, int totalReceiveAg,
            int status, int? resultCode, string description, ref long? id)
        {
            return DB.PaymentInstance.uspLogItemInInsert(accountId, accountName, accountTypeId, paymentGatewayId, paymentGatewayName,
                paymentGatewayUnit, paymentAccountInfo, systemAccountInfo, itemInId, itemInName, totalAmountIn, totalVndIn, quantity, totalReceiveAu, totalReceiveAg, status, resultCode, description, ref id);
        }
        public int UpdateLogItemIn(long id, int status, int? resultCode, string description)
        {
            if (description == string.Empty)
                description = null;
            return DB.PaymentInstance.uspLogItemInUpdate(id,status,resultCode,description);
        }
    }
}
